package cn.psvmc.cxzapi.model.customer;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 客户买断申请表
 * @Author auto
 * @Date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_customer_buyout")
public class TCustomerBuyout implements Serializable {

    //客户买断申请id
    @TableId(value = "cbid", type = IdType.AUTO)
    private Integer cbid;

    //对应的支付宝用户id
    @TableField("userid")
    private String userid;

    //订单号
    @TableField("order_code")
    private String orderCode;

    //商品数量
    @TableField("num")
    private Integer num;

    //订单租金
    @TableField("order_rent")
    private Double orderRent;

    //已付租金
    @TableField("pay_rent")
    private Double payRent;

    //申请状态（0待处理1已同意2已拒绝）
    @TableField(value = "status", fill = FieldFill.INSERT)
    @TableLogic
    private Integer status;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;


}
